/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cx1.service.api;

import java.util.List;
import org.cx1.model.Photo;
import org.cx1.model.utils.ServiceResponse;

/**
 *
 * @author CX
 */
public interface IPhotoService {
        
    public ServiceResponse<String> create(Photo photo);
    
    public ServiceResponse<Photo> read(String id);
    
    public ServiceResponse<List<Photo>> readAll(int offset, int limit);
    
    public ServiceResponse<Boolean> delete(String id);
        
    
    public ServiceResponse<String> createUserPhoto(String userID, Photo photo);
    
    public ServiceResponse<Boolean> deleteUserPhoto(String userID, String photoID);
    
    
    public ServiceResponse<String> createListingPhoto(String listingID, Photo photo);
    
    public ServiceResponse<Boolean> deleteListingPhoto(String listingID, String photoID);
    
    public ServiceResponse<Boolean> deleteListingPhoto(String listingID, String photoID, String userID);

    
    public ServiceResponse<String> createPlacePhoto(String placeID, Photo photo);
        
    public ServiceResponse<Boolean> deletePlacePhoto(String placeID, String photoID);
    
    
    public ServiceResponse<String> createBlogPhoto(String blogID, Photo photo);
        
    public ServiceResponse<Boolean> deleteBlogPhoto(String blogID, String photoID);
    
}
